package com.cratos.xxgram.platf.sysnotice;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import org.redkale.convert.json.JsonConvert;

/**
 *
 * @author fk
 */
@Table(comment = "系统公告")
public class SystemUserNotice extends SystemNotice {

    @Id
    @Column(length = 128, comment = "系统公告id ‘userid + '-' + createuserid + '-' + time36’")
    private String sysusernoticeid = "";
    
    @Column(comment = "用户id")
    private int userid;
    
	public String getSysusernoticeid() {
		return sysusernoticeid;
	}

	public void setSysusernoticeid(String sysusernoticeid) {
		this.sysusernoticeid = sysusernoticeid;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}
    
    @Override
    public String toString() {
        return JsonConvert.root().convertTo(this);
    }
}
